from machine import Pin
import time


p2 = Pin(2, Pin.OUT)     # create input pin on GPIO2
p2.on()                 # set pin to "on" (high) level
p2.off()                # set pin to "off" (low) level
p2.value(1)             # set pin to on/high

num=1

while True:
    num=num+1
    if((num%2)==1):
        p2.on()
    else:
        p2.off()
    print('Hello')
    print('-------')
    time.sleep(1)  # sleep for 1 second
    time.sleep_ms(500)  # sleep for 500 milliseconds
    time.sleep_us(10)  # sleep for 10 microseconds
